package com.kordar.api.modular.unicomJS.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
@TableName("SuZhou_Unicome_order_tmp")
public class OrderTmp {
    @TableId(type = IdType.INPUT)
    private String id;
    @NotEmpty
    private String userName;
    @NotEmpty
    private String userPhone;
    @NotEmpty
    private String userPostcode;
    @NotEmpty
    private String userAddress;
    @NotEmpty
    private String userIdent;
    @NotEmpty
    private String goodId;
    private String orderNo;
    private String channel;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
